{% extends "org/base.html" %}
{% block page-content %}
{% if schedule_list %}
    <table>
	<th>Date</th>
	<th>Home Team</th>
	<th>Away Team</th>
	<th>Score</th>
    {% for object in schedule_list %}
        <tr>
	     <td>{{object.time_start|date:"M d,Y"}}</td>
	     <td><a href="/org/{{object.team1.division.league.id}}/league/{{object.team1.id}}/team/">{% if object.team1_winner %}<b>{% endif %}{{ object.team1.name }}{% if object.team1_winner %}</b>{% endif %}</a></td>
	     <td><a href="/org/{{object.team2.division.league.id}}/league/{{object.team2.id}}/team/">{% if object.team2_winner %}<b>{% endif %}{{ object.team2.name }}{% if object.team2_winner %}</b>{% endif %}</a></td>
	     <td>{{object.team1_points}} - {{object.team2_points}} </td>
	     
	</tr>
    {% endfor %}
    </table>
{% else %}
    <p>No games are available.</p>
{% endif %}
{% endblock %}
